package scatours;

import org.apache.tuscany.sca.node.Node;
import org.apache.tuscany.sca.node.NodeFactory;

import scatours.launcher.LauncherUtil;

public class IntroducingLauncher {

	public static void main(String[] args) {
		Node node= NodeFactory.newInstance().createNode(LauncherUtil.locate("introducing-tours"),LauncherUtil.locate("introducing-trips"),LauncherUtil.locate("introducing-client"));
		node.start();
		Runnable proxy=node.getService(Runnable.class, "TestClient/Runnable");
		proxy.run();
		node.stop();
	}

}
